//package com.onepiece.gen.frame.database;
//
//import com.baomidou.mybatisplus.core.config.GlobalConfig;
//import lombok.extern.slf4j.Slf4j;
//import org.apache.ibatis.session.SqlSessionFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
//import javax.annotation.PostConstruct;
//
///**
// * @Author Administrator
// * Date 2022/11/28 15:46
// * Version 1.0
// * Description TODO
// **/
//@Slf4j
////@Component
//public class MyGlobalConfig extends GlobalConfig {
//    private static MySqlSessionTemplate mySqlSessionTemplate;
//
//    @Autowired
//    private MySqlSessionTemplate sqlSessionTemplate;
//    public MySqlSessionTemplate getSqlSessionTemplate() {
//        return this.sqlSessionTemplate;
//    }
//    @PostConstruct
//    public void init() {
//        mySqlSessionTemplate = this.sqlSessionTemplate;
//    }
//
//    @Override
//    public SqlSessionFactory getSqlSessionFactory() {
//        return mySqlSessionTemplate.getSqlSessionFactory();
//    }
//}
